/integration/:id
Saves an integration’s settings form, then returns the integration exactly as GET /v1/integration/ does. Send the keys you want to change, shaped like the GET response’s data; keys you don’t send are left alone.
Validation. The body is validated against the platform’s settings schema, so required settings must be included (400 Form errors found: …). Some platforms also check their settings and return 400 with their own message. Computed fields are dropped, and owner-only fields are dropped for non-owners.
What is saved:
account_name: blank or null falls back to the owning organisation’s name, as at connect.description: free-text note; blank clears it.filter:{type: include|exclude, list: [organisation ids]}. It replaces the caller organisation’s filter for this integration, and an empty list removes it. This is saved for any caller with access, owner or not.ads_txt/app_ads_txt: newline-separated lines that replace the stored set. A line may be prefixed[managed],[unmanaged]or[UID:<uid>]. Comments, blanks and duplicates are dropped.token,refresh_token,expires: only for platforms that declare them.- Any other key is a platform setting. Nested objects are saved field by field, and an array you send replaces the stored array (an empty array clears it).
Ownership. Apart from filter, changes are only stored when the caller has integration.edit in the integration’s owning organisation. Other callers get 200 with their changes silently ignored.
Mapping v2. publisher_mapping, organisation_mapping and ad_unit_mapping are no longer accepted. If posted, they are dropped and not written. Use POST /v1/mapping/apply. If settings that shape stored report data change, a reprocess is started.
Requires the integration.edit permission.
Authorizations
Path Parameters
Body
Settings to save, keyed as GET /v1/integration/{id} schema.properties. Platform-specific keys are allowed.
The caller organisation's include / exclude list for this integration. exclude: the listed organisations (and their child organisations) can't use it. include: only the listed organisations (and their children) can. Filters set by an organisation or its parents (or CORE) apply. An empty list removes the filter.
Ads.txt lines this integration requires, newline-separated. Present only when the platform's schema declares it. Each line may be prefixed [managed] (check only managed publishers), [unmanaged] (only unmanaged ones) or [UID:<uid>] (only that publisher). Comment lines (#), blank lines and duplicates are dropped on save; whitespace is normalised. Replaces the stored lines. Owner only.